package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.PhotoAlbum;
import com.weixing.mall.provider.model.query.PhotoAlbumQuery;
import com.weixing.mall.provider.model.vo.PhotoAlbumVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * <p>
 * 商品模块-商品图片相册表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface PhotoAlbumMapper extends BaseMapper<PhotoAlbum> {
    /**
     * @Description 条件查询相册列表 <br/>
     * @author gjq
     * @date 2019/8/8 9:16
     * @param photoAlbumQuery
     * @return java.util.List<com.weixing.mall.provider.model.vo.PhotoAlbumVo>
     */
    IPage<PhotoAlbumVo> selectListPage(@Param("pg") Page page, @Param("qs")PhotoAlbumQuery photoAlbumQuery);
    /**
     * @Description 条件查询相册 <br/>
     * @author gjq
     * @date 2019/8/12 17:09
     * @param photoAlbumQuery
     * @return java.util.List<com.weixing.mall.provider.model.vo.PhotoAlbumVo>
     */
    List<PhotoAlbumVo> selectList(@Param("qs")PhotoAlbumQuery photoAlbumQuery);
    /**
     * @Description 批量删除相册 <br/>
     * @author gjq
     * @date 2019/8/9 14:20
     * @param ids
     * @return int
     */
    int delBatch(int[] ids);

    List<PhotoAlbumVo> test();
}